Skip to content

Conversation

@jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Aug 8, 2025

Summary:
We always want to use the detected path. The clang driver's detection is
far more sophisticated so we should use that whenever possible. Also
update the usage so we properly fall back to path instead of incorrectly
using the /bin if not provided.

@llvmbot llvmbot added clang Clang issues not falling into any other category clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' labels Aug 8, 2025
@llvmbot
Copy link
Member

llvmbot commented Aug 8, 2025

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clang-driver

Author: Joseph Huber (jhuber6)

Changes

Summary:
We always want to use the detected path. The clang driver's detection is
far more sophisticated so we should use that whenever possible. Also
update the usage so we properly fall back to path instead of incorrectly
using the /bin if not provided.


Full diff: https://github.com/llvm/llvm-project/pull/152789.diff

2 Files Affected:

  • (modified) clang/lib/Driver/ToolChains/Cuda.cpp (+7-3)
  • (modified) clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp (+15-7)
diff --git a/clang/lib/Driver/ToolChains/Cuda.cpp b/clang/lib/Driver/ToolChains/Cuda.cpp
index fdfcea852b4f2..847d7235441c9 100644
--- a/clang/lib/Driver/ToolChains/Cuda.cpp
+++ b/clang/lib/Driver/ToolChains/Cuda.cpp
@@ -611,9 +611,13 @@ void NVPTX::Linker::ConstructJob(Compilation &C, const JobAction &JA,
     CmdArgs.push_back(Args.MakeArgString(
         "--pxtas-path=" + Args.getLastArgValue(options::OPT_ptxas_path_EQ)));
 
-  if (Args.hasArg(options::OPT_cuda_path_EQ))
-    CmdArgs.push_back(Args.MakeArgString(
-        "--cuda-path=" + Args.getLastArgValue(options::OPT_cuda_path_EQ)));
+  if (Args.hasArg(options::OPT_ptxas_path_EQ) ||
+      TC.CudaInstallation.isValid()) {
+    StringRef CudaPath = Args.getLastArgValue(
+        options::OPT_cuda_path_EQ,
+        llvm::sys::path::parent_path(TC.CudaInstallation.getBinPath()));
+    CmdArgs.push_back(Args.MakeArgString("--cuda-path=" + CudaPath));
+  }
 
   // Add paths specified in LIBRARY_PATH environment variable as -L options.
   addDirectoryList(Args, CmdArgs, "-L", "LIBRARY_PATH");
diff --git a/clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp b/clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp
index 4b63971214f81..c78e37a1ffe89 100644
--- a/clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp
+++ b/clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp
@@ -286,12 +286,17 @@ struct Symbol {
 };
 
 Expected<StringRef> runPTXAs(StringRef File, const ArgList &Args) {
-  std::string CudaPath = Args.getLastArgValue(OPT_cuda_path_EQ).str();
-  std::string GivenPath = Args.getLastArgValue(OPT_ptxas_path_EQ).str();
-  Expected<std::string> PTXAsPath =
-      findProgram(Args, "ptxas", {CudaPath + "/bin", GivenPath});
+  SmallVector<StringRef, 1> SearchPaths;
+  if (Arg *A = Args.getLastArg(OPT_cuda_path_EQ))
+    SearchPaths.push_back(
+        Args.MakeArgString(StringRef(A->getValue()) + "/bin"));
+  if (Arg *A = Args.getLastArg(OPT_ptxas_path_EQ))
+    SearchPaths.push_back(Args.MakeArgString(A->getValue()));
+
+  Expected<std::string> PTXAsPath = findProgram(Args, "ptxas", SearchPaths);
   if (!PTXAsPath)
     return PTXAsPath.takeError();
+
   if (!Args.hasArg(OPT_arch))
     return createStringError(
         "must pass in an explicit nvptx64 gpu architecture to 'ptxas'");
@@ -691,9 +696,12 @@ Error runNVLink(ArrayRef<StringRef> Files, const ArgList &Args) {
   if (Args.hasArg(OPT_lto_emit_asm) || Args.hasArg(OPT_lto_emit_llvm))
     return Error::success();
 
-  std::string CudaPath = Args.getLastArgValue(OPT_cuda_path_EQ).str();
-  Expected<std::string> NVLinkPath =
-      findProgram(Args, "nvlink", {CudaPath + "/bin"});
+  SmallVector<StringRef, 1> SearchPaths;
+  if (Arg *A = Args.getLastArg(OPT_cuda_path_EQ))
+    SearchPaths.push_back(
+        Args.MakeArgString(StringRef(A->getValue()) + "/bin"));
+
+  Expected<std::string> NVLinkPath = findProgram(Args, "nvlink", SearchPaths);
   if (!NVLinkPath)
     return NVLinkPath.takeError();
 

Copy link
Contributor

@jplehr jplehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Summary:
We always want to use the detected path. The clang driver's detection is
far more sophisticated so we should use that whenever possible. Also
update the usage so we properly fall back to path instead of incorrectly
using the `/bin` if not provided.
@jhuber6 jhuber6 merged commit 9da4d74 into llvm:main Aug 11, 2025
9 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 11, 2025

LLVM Buildbot has detected a new failure on builder hip-third-party-libs-test running on ext_buildbot_hw_05-hip-docker while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds/4592

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py --jobs=32' (failure)
...
[6923/7992] Creating library symlink lib/libclangFrontendTool.so
[6924/7992] Building AMDGPUGenRegisterBank.inc...
[6925/7992] Linking CXX executable bin/clang-import-test
[6926/7992] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6927/7992] Creating library symlink lib/libclangInterpreter.so
[6928/7992] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6929/7992] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6930/7992] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6931/7992] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6932/7992] Linking CXX shared library lib/libFortranSupport.so.22.0git
FAILED: lib/libFortranSupport.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -fpch-preprocess -O3 -DNDEBUG -fno-semantic-interposition  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libFortranSupport.so.22.0git -o lib/libFortranSupport.so.22.0git tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/default-kinds.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Flags.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Fortran.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Fortran-features.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/idioms.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/LangOptions.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Timing.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Version.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/hip-third-party-libs-test/build/lib:"  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `unsigned int Fortran::common::log2visit::Log2VisitHelper<0ul, 7ul, unsigned int, fir::details::matches<fir::ExtendedValue::rank() const::{lambda(mlir::Value const&)#1}, fir::ExtendedValue::rank() const::{lambda(fir::CharBoxValue const&)#2}, fir::ExtendedValue::rank() const::{lambda(fir::ProcBoxValue const&)#3}, fir::ExtendedValue::rank() const::{lambda(fir::PolymorphicValue const&)#4}, fir::ExtendedValue::rank() const::{lambda(auto:1 const&)#5}>, std::variant<mlir::Value, fir::CharBoxValue, fir::ArrayBoxValue, fir::CharArrayBoxValue, fir::ProcBoxValue, fir::BoxValue, fir::MutableBoxValue, fir::PolymorphicValue> const&>(fir::details::matches<fir::ExtendedValue::rank() const::{lambda(mlir::Value const&)#1}, fir::ExtendedValue::rank() const::{lambda(fir::CharBoxValue const&)#2}, fir::ExtendedValue::rank() const::{lambda(fir::ProcBoxValue const&)#3}, fir::ExtendedValue::rank() const::{lambda(fir::PolymorphicValue const&)#4}, fir::ExtendedValue::rank() const::{lambda(auto:1 const&)#5}>&&, unsigned long, std::variant<mlir::Value, fir::CharBoxValue, fir::ArrayBoxValue, fir::CharArrayBoxValue, fir::ProcBoxValue, fir::BoxValue, fir::MutableBoxValue, fir::PolymorphicValue> const&) [clone .isra.0]':
OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0xc4): undefined reference to `fir::dyn_cast_ptrEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0xe8): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0xf1): undefined reference to `mlir::detail::TypeIDResolver<fir::ClassType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0x131): undefined reference to `fir::dyn_cast_ptrOrBoxEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0x145): undefined reference to `mlir::detail::TypeIDResolver<fir::SequenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0x15e): undefined reference to `fir::SequenceType::getShape() const'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `Fortran::common::openmp::needsBoundsOps(mlir::Value)':
OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0xeb): undefined reference to `fir::dyn_cast_ptrEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0xfd): undefined reference to `fir::dyn_cast_ptrOrBoxEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0x116): undefined reference to `fir::hasDynamicSize(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0x1ac): undefined reference to `fir::hasDynamicSize(mlir::Type)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::factory::genBoundsOpFromBoxChar<mlir::omp::MapBoundsOp, mlir::omp::MapBoundsType>(fir::FirOpBuilder&, mlir::Location, fir::ExtendedValue, fir::factory::AddrAndBoundsInfo&)::{lambda()#1}::operator()() const':
OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x9e): undefined reference to `fir::IfOp::create(mlir::OpBuilder&, mlir::Location, mlir::TypeRange, mlir::Value, bool)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x158): undefined reference to `mlir::detail::TypeIDResolver<fir::ReferenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x161): undefined reference to `mlir::detail::TypeIDResolver<fir::PointerType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x16a): undefined reference to `mlir::detail::TypeIDResolver<fir::HeapType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x173): undefined reference to `mlir::detail::TypeIDResolver<fir::LLVMPointerType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x190): undefined reference to `fir::LoadOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x1ba): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxCharType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x1db): undefined reference to `fir::BoxCharType::getEleTy() const'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x1ec): undefined reference to `fir::FirOpBuilder::getRefType(mlir::Type, bool)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x20c): undefined reference to `fir::UnboxCharOp::create(mlir::OpBuilder&, mlir::Location, mlir::Type, mlir::Type, mlir::Value)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x279): undefined reference to `fir::ResultOp::create(mlir::OpBuilder&, mlir::Location, mlir::ValueRange)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x39d): undefined reference to `fir::ResultOp::create(mlir::OpBuilder&, mlir::Location, mlir::ValueRange)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x3de): undefined reference to `fir::IfOp::getODSResultIndexAndLength(unsigned int)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4a9): undefined reference to `mlir::detail::TypeIDResolver<fir::ReferenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4b2): undefined reference to `mlir::detail::TypeIDResolver<fir::PointerType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4bb): undefined reference to `mlir::detail::TypeIDResolver<fir::HeapType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4c4): undefined reference to `mlir::detail::TypeIDResolver<fir::LLVMPointerType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4e3): undefined reference to `fir::LoadOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x50d): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxCharType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x52d): undefined reference to `fir::BoxCharType::getEleTy() const'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x53a): undefined reference to `fir::FirOpBuilder::getRefType(mlir::Type, bool)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x55b): undefined reference to `fir::UnboxCharOp::create(mlir::OpBuilder&, mlir::Location, mlir::Type, mlir::Type, mlir::Value)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `llvm::SmallVector<mlir::Value, 6u> fir::factory::gatherBoundsOrBoundValues<mlir::omp::MapBoundsOp, mlir::omp::MapBoundsType>(fir::FirOpBuilder&, mlir::Location, fir::ExtendedValue, mlir::Value, bool)':
OpenMP-utils.cpp:(.text._ZN3fir7factory25gatherBoundsOrBoundValuesIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueES8_b[_ZN3fir7factory25gatherBoundsOrBoundValuesIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueES8_b]+0xca): undefined reference to `mlir::detail::TypeIDResolver<mlir::omp::MapBoundsType, void>::id'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[6923/7992] Creating library symlink lib/libclangFrontendTool.so
[6924/7992] Building AMDGPUGenRegisterBank.inc...
[6925/7992] Linking CXX executable bin/clang-import-test
[6926/7992] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6927/7992] Creating library symlink lib/libclangInterpreter.so
[6928/7992] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6929/7992] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6930/7992] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6931/7992] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6932/7992] Linking CXX shared library lib/libFortranSupport.so.22.0git
FAILED: lib/libFortranSupport.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -fpch-preprocess -O3 -DNDEBUG -fno-semantic-interposition  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libFortranSupport.so.22.0git -o lib/libFortranSupport.so.22.0git tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/default-kinds.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Flags.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Fortran.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Fortran-features.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/idioms.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/LangOptions.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Timing.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Version.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/hip-third-party-libs-test/build/lib:"  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `unsigned int Fortran::common::log2visit::Log2VisitHelper<0ul, 7ul, unsigned int, fir::details::matches<fir::ExtendedValue::rank() const::{lambda(mlir::Value const&)#1}, fir::ExtendedValue::rank() const::{lambda(fir::CharBoxValue const&)#2}, fir::ExtendedValue::rank() const::{lambda(fir::ProcBoxValue const&)#3}, fir::ExtendedValue::rank() const::{lambda(fir::PolymorphicValue const&)#4}, fir::ExtendedValue::rank() const::{lambda(auto:1 const&)#5}>, std::variant<mlir::Value, fir::CharBoxValue, fir::ArrayBoxValue, fir::CharArrayBoxValue, fir::ProcBoxValue, fir::BoxValue, fir::MutableBoxValue, fir::PolymorphicValue> const&>(fir::details::matches<fir::ExtendedValue::rank() const::{lambda(mlir::Value const&)#1}, fir::ExtendedValue::rank() const::{lambda(fir::CharBoxValue const&)#2}, fir::ExtendedValue::rank() const::{lambda(fir::ProcBoxValue const&)#3}, fir::ExtendedValue::rank() const::{lambda(fir::PolymorphicValue const&)#4}, fir::ExtendedValue::rank() const::{lambda(auto:1 const&)#5}>&&, unsigned long, std::variant<mlir::Value, fir::CharBoxValue, fir::ArrayBoxValue, fir::CharArrayBoxValue, fir::ProcBoxValue, fir::BoxValue, fir::MutableBoxValue, fir::PolymorphicValue> const&) [clone .isra.0]':
OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0xc4): undefined reference to `fir::dyn_cast_ptrEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0xe8): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0xf1): undefined reference to `mlir::detail::TypeIDResolver<fir::ClassType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0x131): undefined reference to `fir::dyn_cast_ptrOrBoxEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0x145): undefined reference to `mlir::detail::TypeIDResolver<fir::SequenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common9log2visit15Log2VisitHelperILm0ELm7EjN3fir7details7matchesIJZNKS3_13ExtendedValue4rankEvEUlRKN4mlir5ValueEE_ZNKS6_4rankEvEUlRKNS3_12CharBoxValueEE0_ZNKS6_4rankEvEUlRKNS3_12ProcBoxValueEE1_ZNKS6_4rankEvEUlRKNS3_16PolymorphicValueEE2_ZNKS6_4rankEvEUlRKT_E3_EEEJRKSt7variantIJS8_SC_NS3_13ArrayBoxValueENS3_17CharArrayBoxValueESG_NS3_8BoxValueENS3_15MutableBoxValueESK_EEEEET1_OT2_mDpOT3_.isra.0[_ZN3fir7factory16genBaseBoundsOpsIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueEbb]+0x15e): undefined reference to `fir::SequenceType::getShape() const'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `Fortran::common::openmp::needsBoundsOps(mlir::Value)':
OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0xeb): undefined reference to `fir::dyn_cast_ptrEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0xfd): undefined reference to `fir::dyn_cast_ptrOrBoxEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0x116): undefined reference to `fir::hasDynamicSize(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0x1ac): undefined reference to `fir::hasDynamicSize(mlir::Type)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::factory::genBoundsOpFromBoxChar<mlir::omp::MapBoundsOp, mlir::omp::MapBoundsType>(fir::FirOpBuilder&, mlir::Location, fir::ExtendedValue, fir::factory::AddrAndBoundsInfo&)::{lambda()#1}::operator()() const':
OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x9e): undefined reference to `fir::IfOp::create(mlir::OpBuilder&, mlir::Location, mlir::TypeRange, mlir::Value, bool)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x158): undefined reference to `mlir::detail::TypeIDResolver<fir::ReferenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x161): undefined reference to `mlir::detail::TypeIDResolver<fir::PointerType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x16a): undefined reference to `mlir::detail::TypeIDResolver<fir::HeapType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x173): undefined reference to `mlir::detail::TypeIDResolver<fir::LLVMPointerType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x190): undefined reference to `fir::LoadOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x1ba): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxCharType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x1db): undefined reference to `fir::BoxCharType::getEleTy() const'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x1ec): undefined reference to `fir::FirOpBuilder::getRefType(mlir::Type, bool)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x20c): undefined reference to `fir::UnboxCharOp::create(mlir::OpBuilder&, mlir::Location, mlir::Type, mlir::Type, mlir::Value)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x279): undefined reference to `fir::ResultOp::create(mlir::OpBuilder&, mlir::Location, mlir::ValueRange)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x39d): undefined reference to `fir::ResultOp::create(mlir::OpBuilder&, mlir::Location, mlir::ValueRange)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x3de): undefined reference to `fir::IfOp::getODSResultIndexAndLength(unsigned int)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4a9): undefined reference to `mlir::detail::TypeIDResolver<fir::ReferenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4b2): undefined reference to `mlir::detail::TypeIDResolver<fir::PointerType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4bb): undefined reference to `mlir::detail::TypeIDResolver<fir::HeapType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4c4): undefined reference to `mlir::detail::TypeIDResolver<fir::LLVMPointerType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x4e3): undefined reference to `fir::LoadOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x50d): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxCharType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x52d): undefined reference to `fir::BoxCharType::getEleTy() const'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x53a): undefined reference to `fir::FirOpBuilder::getRefType(mlir::Type, bool)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv[_ZZN3fir7factory22genBoundsOpFromBoxCharIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEENS2_5ValueERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueERNS0_17AddrAndBoundsInfoEENKUlvE_clEv]+0x55b): undefined reference to `fir::UnboxCharOp::create(mlir::OpBuilder&, mlir::Location, mlir::Type, mlir::Type, mlir::Value)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `llvm::SmallVector<mlir::Value, 6u> fir::factory::gatherBoundsOrBoundValues<mlir::omp::MapBoundsOp, mlir::omp::MapBoundsType>(fir::FirOpBuilder&, mlir::Location, fir::ExtendedValue, mlir::Value, bool)':
OpenMP-utils.cpp:(.text._ZN3fir7factory25gatherBoundsOrBoundValuesIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueES8_b[_ZN3fir7factory25gatherBoundsOrBoundValuesIN4mlir3omp11MapBoundsOpENS3_13MapBoundsTypeEEEN4llvm11SmallVectorINS2_5ValueELj6EEERNS_12FirOpBuilderENS2_8LocationENS_13ExtendedValueES8_b]+0xca): undefined reference to `mlir::detail::TypeIDResolver<mlir::omp::MapBoundsType, void>::id'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 11, 2025

LLVM Buildbot has detected a new failure on builder lldb-arm-ubuntu running on linaro-lldb-arm-ubuntu while building clang at step 6 "test".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/20297

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
PASS: lldb-api :: tools/lldb-dap/evaluate/TestDAP_evaluate.py (1210 of 3616)
PASS: lldb-api :: tools/lldb-dap/memory/TestDAP_memory.py (1211 of 3616)
PASS: lldb-api :: tools/lldb-dap/output/TestDAP_output.py (1212 of 3616)
PASS: lldb-api :: tools/lldb-dap/optimized/TestDAP_optimized.py (1213 of 3616)
PASS: lldb-api :: tools/lldb-dap/module/TestDAP_module.py (1214 of 3616)
PASS: lldb-api :: tools/lldb-dap/repl-mode/TestDAP_repl_mode_detection.py (1215 of 3616)
UNSUPPORTED: lldb-api :: tools/lldb-dap/restart/TestDAP_restart_console.py (1216 of 3616)
PASS: lldb-api :: tools/lldb-dap/progress/TestDAP_Progress.py (1217 of 3616)
UNSUPPORTED: lldb-api :: tools/lldb-dap/runInTerminal/TestDAP_runInTerminal.py (1218 of 3616)
UNSUPPORTED: lldb-api :: tools/lldb-dap/save-core/TestDAP_save_core.py (1219 of 3616)
FAIL: lldb-api :: tools/lldb-dap/launch/TestDAP_launch.py (1220 of 3616)
******************** TEST 'lldb-api :: tools/lldb-dap/launch/TestDAP_launch.py' FAILED ********************
Script:
--
/usr/bin/python3.10 /home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./lib --env LLVM_INCLUDE_DIR=/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/include --env LLVM_TOOLS_DIR=/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin --arch armv8l --build-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex --lldb-module-cache-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin/lldb --compiler /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin/clang --dsymutil /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin --lldb-obj-root /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/tools/lldb --lldb-libs-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./lib --cmake-build-type Release /home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/tools/lldb-dap/launch -p TestDAP_launch.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 22.0.0git (https://github.com/llvm/llvm-project.git revision 9da4d74a8865e32289273e7122d44863baf64ee8)
  clang revision 9da4d74a8865e32289273e7122d44863baf64ee8
  llvm revision 9da4d74a8865e32289273e7122d44863baf64ee8
Skipping the following test categories: ['libc++', 'msvcstl', 'dsym', 'gmodules', 'debugserver', 'objc']

--
Command Output (stderr):
--
========= DEBUG ADAPTER PROTOCOL LOGS =========
1754917614.729890823 (stdio) --> {"command":"initialize","type":"request","arguments":{"adapterID":"lldb-native","clientID":"vscode","columnsStartAt1":true,"linesStartAt1":true,"locale":"en-us","pathFormat":"path","supportsRunInTerminalRequest":true,"supportsVariablePaging":true,"supportsVariableType":true,"supportsStartDebuggingRequest":true,"supportsProgressReporting":true,"$__lldb_sourceInitFile":false},"seq":1}
1754917614.733744621 (stdio) <-- {"body":{"$__lldb_version":"lldb version 22.0.0git (https://github.com/llvm/llvm-project.git revision 9da4d74a8865e32289273e7122d44863baf64ee8)\n  clang revision 9da4d74a8865e32289273e7122d44863baf64ee8\n  llvm revision 9da4d74a8865e32289273e7122d44863baf64ee8","completionTriggerCharacters":["."," ","\t"],"exceptionBreakpointFilters":[{"description":"C++ Catch","filter":"cpp_catch","label":"C++ Catch","supportsCondition":true},{"description":"C++ Throw","filter":"cpp_throw","label":"C++ Throw","supportsCondition":true},{"description":"Objective-C Catch","filter":"objc_catch","label":"Objective-C Catch","supportsCondition":true},{"description":"Objective-C Throw","filter":"objc_throw","label":"Objective-C Throw","supportsCondition":true}],"supportTerminateDebuggee":true,"supportsBreakpointLocationsRequest":true,"supportsCancelRequest":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsDisassembleRequest":true,"supportsEvaluateForHovers":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsFunctionBreakpoints":true,"supportsHitConditionalBreakpoints":true,"supportsInstructionBreakpoints":true,"supportsLogPoints":true,"supportsModulesRequest":true,"supportsReadMemoryRequest":true,"supportsSetVariable":true,"supportsSteppingGranularity":true,"supportsValueFormattingOptions":true,"supportsWriteMemoryRequest":true},"command":"initialize","request_seq":1,"seq":0,"success":true,"type":"response"}
1754917614.734294176 (stdio) --> {"command":"launch","type":"request","arguments":{"program":"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/tools/lldb-dap/launch/TestDAP_launch.test_args/a.out","args":["one","with space","'with single quotes'","\"with double quotes\""],"initCommands":["settings clear --all","settings set symbols.enable-external-lookup false","settings set target.inherit-tcc true","settings set target.disable-aslr false","settings set target.detach-on-error false","settings set target.auto-apply-fixits false","settings set plugin.process.gdb-remote.packet-timeout 60","settings set symbols.clang-modules-cache-path \"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api\"","settings set use-color false","settings set show-statusline false"],"disableASLR":false,"enableAutoVariableSummaries":false,"enableSyntheticChildDebugging":false,"displayExtendedBacktrace":false},"seq":2}
1754917614.734748363 (stdio) <-- {"body":{"category":"console","output":"Running initCommands:\n"},"event":"output","seq":0,"type":"event"}
1754917614.734780312 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings clear --all\n"},"event":"output","seq":0,"type":"event"}
1754917614.734792709 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set symbols.enable-external-lookup false\n"},"event":"output","seq":0,"type":"event"}
1754917614.734813452 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set target.inherit-tcc true\n"},"event":"output","seq":0,"type":"event"}
1754917614.734826565 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set target.disable-aslr false\n"},"event":"output","seq":0,"type":"event"}
1754917614.734842777 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set target.detach-on-error false\n"},"event":"output","seq":0,"type":"event"}
1754917614.734853029 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set target.auto-apply-fixits false\n"},"event":"output","seq":0,"type":"event"}
1754917614.734882116 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set plugin.process.gdb-remote.packet-timeout 60\n"},"event":"output","seq":0,"type":"event"}
1754917614.734894514 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set symbols.clang-modules-cache-path \"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api\"\n"},"event":"output","seq":0,"type":"event"}
1754917614.734904766 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set use-color false\n"},"event":"output","seq":0,"type":"event"}
1754917614.734915018 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set show-statusline false\n"},"event":"output","seq":0,"type":"event"}
1754917615.479076147 (stdio) <-- {"command":"launch","request_seq":2,"seq":0,"success":true,"type":"response"}
1754917615.479135513 (stdio) <-- {"event":"initialized","seq":0,"type":"event"}
1754917615.482117414 (stdio) <-- {"body":{"module":{"addressRange":"0xf54f0000","debugInfoSize":"983.3KB","id":"253BA35E-436C-EC85-2949-CBD09E38AFEE-11B460BF","name":"ld-linux-armhf.so.3","path":"/usr/lib/arm-linux-gnueabihf/ld-linux-armhf.so.3","symbolFilePath":"/usr/lib/arm-linux-gnueabihf/ld-linux-armhf.so.3","symbolStatus":"Symbols loaded."},"reason":"new"},"event":"module","seq":0,"type":"event"}
1754917615.483238220 (stdio) <-- {"body":{"module":{"addressRange":"0x96e0000","debugInfoSize":"1.4KB","id":"16943C70","name":"a.out","path":"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/tools/lldb-dap/launch/TestDAP_launch.test_args/a.out","symbolFilePath":"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/tools/lldb-dap/launch/TestDAP_launch.test_args/a.out","symbolStatus":"Symbols loaded."},"reason":"new"},"event":"module","seq":0,"type":"event"}
1754917615.490740776 (stdio) --> {"command":"configurationDone","type":"request","arguments":{},"seq":3}
1754917615.494545698 (stdio) <-- {"body":{"capabilities":{"supportsRestartRequest":true}},"event":"capabilities","seq":0,"type":"event"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants